<!DOCTYPE html>
<html>
<head>
    <title>Document</title>
</head>
<body>
    <div id="u">
    </div>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script>
        $(function(){
            $.ajax({
                url: 'http://hoa.hcoder.net/index.php?user=hcoder&pwd=hcoder&m=info&id=1',
                type: 'get',
                data: {id:3},
                dataType: "json",
                success: function(res){
                    console.log(res);
                    let str = "";
                    str +="<h1>"+res.title+"</h1>";   
                    str +="<p>"+res.content+"</p>"; 
                    console.log(str);
                    $("#u").html(str);
                }
            });
        })
    </script>
</body>
</html>